﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NexCart.Web.Models;

namespace NexCart.Web.Repositories {
	public class SqlRepository : NexCart.Web.Repositories.IRepository {

		NexCartDataContext db = new NexCartDataContext();

		public SqlRepository() {
			ProductRepository = new SqlProductRepository(db);
			ProductImageRepository = new SqlProductImageRepository(db);
		}


		public IProductRepository ProductRepository { get; private set; }
		public IProductImageRepository ProductImageRepository { get; private set; }
	}
}
